<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
    String  baseUrl = request.getScheme()+"://"
            +request.getServerName()+":"
            +request.getServerPort()
            +request.getContextPath()+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>信息列表</title>
    <base href="<%=baseUrl%>">
</head>
<body>
<a href="resume/add">新增</a>
<table cellpadding="0" cellspacing="0" border="1">
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>地址</td>
        <td>电话号码</td>
        <td colspan="2">操作</td>
    </tr>
    <c:forEach items="${resumes}" var="resume">
        <tr>
            <td>${resume.id}</td>
            <td>${resume.name}</td>
            <td>${resume.address}</td>
            <td>${resume.phone}</td>
            <td>
                <a href="resume/update?id=${resume.id}">修改</a>
                <a href="resume/delete?id=${resume.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
